package com.qs.sckill.config.redis.key;

import com.qs.sckill.config.redis.base.BasePrefix;

/**
 * 定义用户信息存储在redis的前缀及过期时间
 */
public class UserKey extends BasePrefix {

    public static final int TOKEN_EXPIRE = 3600 * 24 * 2;

    public UserKey(String prefix) {
        super(prefix);
    }

    public UserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    //token存储在redis中前缀
    public static UserKey token = new UserKey(TOKEN_EXPIRE, "tk");
}
